<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>AsmInline.pb</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<pre><font face="Courier New, Courier, mono"size="2"><font color="#3A3966">;
</font><font color="#3A3966">; ------------------------------------------------------------
</font><font color="#3A3966">;
</font><font color="#3A3966">;   PureBasic - Inlined asm example file
</font><font color="#3A3966">;
</font><font color="#3A3966">;    (c) Fantaisie Software
</font><font color="#3A3966">;
</font><font color="#3A3966">; ------------------------------------------------------------
</font><font color="#3A3966">;
</font>
<b><font color="#3A3966">CompilerIf</font></b> <font color="#924B72">#PB_Compiler_Processor</font> &lt;&gt; <font color="#924B72">#PB_Processor_x86</font> <b><font color="#3A3966">And</font></b> <font color="#924B72">#PB_Compiler_Processor</font> &lt;&gt; <font color="#924B72">#PB_Processor_x64</font>
  <b><font color="#3A3966">CompilerError</font></b> "This example only works on x86 or x64 processors"
<b><font color="#3A3966">CompilerEndIf</font></b>

Value.l = 10  <font color="#3A3966">; Declare our own variable
</font>
<b><font color="#3A3966">EnableASM</font></b>
  MOV Value, 20 <font color="#3A3966">; Directly use the ASM keywords with PureBasic variable !
</font>  INC Value
<b><font color="#3A3966">DisableASM</font></b>

<font color="#3A3966">MessageRequester</font>("ASM Example", "Should be 21: " + Value)
</font></pre>
</body></html>
